#include <stdio.h>
#include <string.h>

#define MAX_NAME_LEN 20
#define NUM_NAMES 6

int main() {
    char names[NUM_NAMES][MAX_NAME_LEN] = {"abc", "bbc", "ccc", "Hello", "John", "Tome"};
    char inputName[MAX_NAME_LEN];

    printf("请输入一行字符：");
    scanf("%s", inputName);

    int found = 0;
    for (int i = 0; i < NUM_NAMES; i++) {
        if (strcmp(inputName, names[i]) == 0) {
            found = 1;
            printf("欢迎你，%s！\n", inputName);
            break;
        }
    }

    if (!found) {
        printf("名字没有找到！\n");
    }

    return 0;
}